import java.util.ArrayList;
public class MemberRegister
{
	private ArrayList<Member> members;
	public MemberRegister()	{
	    members= new ArrayList<>();
	}
	
	public void addMember(Member m)	{
	    members.add(m);
	}
	
	//returns the total fee from all the club members
	public double getTotalFees()   {
     double totalFee = 0;
     for (Member m:members) {
         totalFee+=m.getFee();
        }
     return totalFee ;
    }

}
